<template>
  <div>
    <el-breadcrumb separator="/">
      <el-breadcrumb-item :to="{ path: '/' }"
        ><span @click="goBack" class="fen-pei"
          >分配短信</span
        ></el-breadcrumb-item
      >
      <el-breadcrumb-item>{{ title }}</el-breadcrumb-item>
    </el-breadcrumb>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      required: true,
      default: '分配短信'
    }
  },
  methods: {
    goBack() {
      this.$emit('toggle', 'add')
    }
  }
}
</script>

<style lang="scss" scoped>
.fen-pei {
  color: #3296fa;
}
.el-breadcrumb {
  margin-bottom: 30px;
}
</style>
